import java.text.DecimalFormat

class TestMain {

    companion object {


        @JvmStatic
        fun main(args: Array<String>) {
            val listOf = mutableListOf(
                Data(10),
                Data(8),
                Data(2),
                Data(52),
                Data(45),
                Data(1),
                Data(3),
            )
            listOf.sortBy { it.priority }
            println(listOf)
        }
    }

    class Data(val priority: Int) {
        override fun toString(): String {
            return "Data(priority=$priority)"
        }
    }

}